<?php
session_start();
require('../conn.php');
require('../functions.php');
require('admin.php');
$sql = "select * from `link`";
$row_user = $mysql->query($sql);
?>
<?php include('head.php') ?>
<div class="container-fluid">
    <div class="row-fluid">
        <?php include('left.php'); ?>
        <div class="span10">
            <h1 class="page-title">域名管理</h1>

            <div class="well">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <div class="well">
                            <table class="table">
                                <thead>
                                <tr>
                                    <th>id</th>
                                    <th>类型</th>
                                    <th>描述</th>
                                    <th>域名</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                foreach ($row_user as $v_user) {
                                    print <<<table
        <tr>
     	  <td>{$v_user['id']}</td>
     	  <td>{$v_user['type']}</td>
     	  <td>{$v_user['desc']}</td>
		  <td>{$v_user['link']}</td>
		  <td>
			<a class="btn btn-primary" href="edit_domain.php?uid={$v_user['id']}" title="编辑"><i class="icon-edit"></i></a>
		  </td>
        </tr>
table;
                                } ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="tab-pane fade" id="profile">
                    </div>
                </div>

            </div>

        </div>
    </div>
</div>


<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="lib/bootstrap/js/bootstrap.js"></script>
</body>
</html>